<!DOCTYPE HTML>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-default">
            <form th:id="form-data" th:action="@{/systemSetting/doEdit}" th:object="${setting}" method="post">
                <div class="panel-body">
                    <div class="form-group clear">
                        <label class="col-sm-1 control-label search-label">配置键</label>
                        <div class="col-sm-4 col-sm-inp">
                            <input type="text" class="form-control" th:field="*{key}" disabled="disabled" placeholder=""/>
                        </div>
                    </div>

                    <div class="form-group clear">
                        <label class="col-sm-1 control-label search-label">键名称</label>
                        <div class="col-sm-4 col-sm-inp">
                            <input type="text" class="form-control" th:field="*{name}" disabled="disabled" placeholder=""/>
                        </div>
                    </div>

                    <div class="form-group clear">
                        <label class="col-sm-1 control-label search-label">键值</label>
                        <div class="col-sm-4 col-sm-inp">
                            <input type="text" class="form-control" th:field="*{value}" maxlength="120" onfocus="clearErrorMsg()" placeholder="请输入键值" />
                        </div>
                    </div>

                    <input th:type="hidden" th:field="*{id}" placeholder="">
                    <input th:type="hidden" id="editType" name="editType" th:value="${editType}" placeholder="">

                    <div class="clear errorMsg" id="errorMsg"></div>

                    <div class="panel-heading">
                        <div>
                            <button type="button" class="btn btn-sm btn-warning"
                                    th:onclick="'javascript:loadListData(\'' + @{/systemSetting/list} + '\')'">返回</button>&emsp;
                            <button type="button" class="btn btn-sm btn-success" onclick="checkParams()">确定修改</button>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<script th:src="@{/manager/js/systemSetting.js}"></script>
</html>